@extends('layouts.app')

@section('content')
<div class="container">
	<div class="row">
<div class="panel panel-default col-md-8 col-md-offset-2">
  <div class="panel-heading">
    <h2 class="text-center">
      新增贴吧
    </h2>
  </div>
  @include('common.error')
  <div class="panel-body">
    <form class="form-horizontal" method="POST" action="{{ route('tieba.store') }}" accept-charset="UTF-8">
    	{{ csrf_field() }}
      	<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
          	<label class="control-label col-sm-2">名称</label>
          	<div class="col-sm-6">
            	<input class="form-control" name="name" value="{{ old('name')}}" />
            	@if ($errors->has('name'))
                    <span class="help-block">
                    	<strong>{{ $errors->first('name') }}</strong>
                    </span>
                @endif
          	</div>
     	</div>
     	<div class="form-group">
           	<div class="col-sm-6 col-sm-offset-2">
     			<div class="checkbox">
    				<label>
      					<input type="checkbox" name="isget" value="1"> 是否抓取
    				</label>
  				</div>
  			</div>
  		</div>	
     	<div class="form-group">
            <div class="col-sm-6 col-sm-offset-2">
            	<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 保存</button>
        	</div>
        </div>
    </form>
  </div>
</div>
</div>
</div>
@stop